/*
        debug.h
        
        Function calls used for debug
        
        Meng Sun(c) leon.meng.sun@gmail.com
        Source code released under LGPLv3
        https://www.gnu.org/licenses/lgpl-3.0.txt
*/

#ifndef ISAMIPS_QEMU_DEBUG
#define ISAMIPS_QEMU_DEBUG

#ifdef __D_OEOS_DEBUG__
	#include "i8250.h"
	#include "i8254.h"
	#define DEBUGLOG(info, ...) \
		i8250SetGraphicsModeInformation(); \
		i8250Printf("[DEBUG: %8x : %8x] - " info "\n", getEpocCounterHi(), getEpocCounterLo(), ##__VA_ARGS__); \
		i8250SetGraphicsModePlain();
#else
	#define DEBUGLOG(info, ...)
#endif

#endif
